#include "RawMux.h"

CRawMux::CRawMux()
{

}

CRawMux::~CRawMux()
{

}

int CRawMux::Init()
{
	return J_OK;
}

void CRawMux::Deinit()
{

}

int CRawMux::Convert(const char *pInputData, J_StreamHeader &streamHeader, char *pOutputData, int &nOutLen, void *pExtdata)
{
	nOutLen = 0;
	if (streamHeader.frameType == J_VideoIFrame || streamHeader.frameType == J_VideoPFrame)
	{
		memcpy(pOutputData, pInputData, streamHeader.dataLen);
		nOutLen = streamHeader.dataLen;
	}

	return J_OK;
}
